Class symantec.itools.db.beans.util.LocalizedValueGenerator
All Packages Class Hierarchy This Package Previous Next Index
Class symantec.itools.db.beans.util.LocalizedValueGenerator
Object
|
+----symantec.itools.db.beans.util.LocalizedValueGenerator
- public class LocalizedValueGenerator
- extends Object
Class to return localized values depending on the object type.
This logic is to be used by Mediators, BindingModel, TableBindingModel
etc. So the entire logic has been moved to this class for reuse
- Version:
- 1.0 10/27/98
- Author:
- Puru Balakrishnan
-
DEFAULT_GROUPING_SIZE
-
-
PERFORM_LOCALIZATION
- variables representing constants
-
debug
-
-
getLocalizationStatus()
-
-
getNumberFromString(Object, int)
-
-
isObjToBeLocalized(Object)
- Method to determine if localization needs to be performed for this object
-
localizeValue(Object)
- Method to return localized object value.
-
localizeValue(Object, int)
- Method to return localized object value.
DEFAULT_GROUPING_SIZE
public static final int DEFAULT_GROUPING_SIZE
PERFORM_LOCALIZATION
public static final boolean PERFORM_LOCALIZATION
- variables representing constants
debug
public static final boolean debug
getLocalizationStatus
public static boolean getLocalizationStatus()
getNumberFromString
protected static java.lang.Number getNumberFromString(Object objSwitch,
int toDataType)
isObjToBeLocalized
public static boolean isObjToBeLocalized(Object objVal)
- Method to determine if localization needs to be performed for this object
- Parameters:
- Object - value to be localized
- Returns:
- boolean indicating true or false
localizeValue
public static java.lang.Object localizeValue(Object inputVal)
- Method to return localized object value.
Note: This method is called from Mediator or BindingModel where
there is no knowledge about the data type. The localization is
to be done depending upon the type of Java Object.
- Parameters:
- Object - value to be localized
- Returns:
- localized object value
localizeValue
public static java.lang.Number localizeValue(Object value,
int toDataType)
- Method to return localized object value.
Note: This method is called from BaseRecordDefinition where
the data type is known.
- Parameters:
- Object - value to be localized
- Returns:
- localized object value
All Packages Class Hierarchy This Package Previous Next Index